﻿using System;

namespace Ex1ComplexNumber
{
    class TestComplexNumbers
    {
        public static void Main()
        {
            var result  = new ComplexNumber(1, 23) + new ComplexNumber(33, 51);
            var substractResult = new ComplexNumber(1, 23) - new ComplexNumber(33, 51);
            var multi = new ComplexNumber(1, 23) * new ComplexNumber(33, 51);
            var devision = new ComplexNumber(1, 23) / new ComplexNumber(33, 51);
            ComplexNumber x = new ComplexNumber(1, 22);
            double y = 13.5;
            x = y;


            Console.WriteLine(result);
            Console.WriteLine(substractResult);
            Console.WriteLine(multi);
            Console.WriteLine(devision);
            Console.WriteLine("x={0}",x);
            y = (double)result;
            Console.WriteLine("y={0}",y);
            Console.WriteLine(substractResult[1]);
            Console.WriteLine(substractResult[0]);
        }
    }
}
